package com.hziee.graduate.ticket.controller;

import com.hziee.graduate.ticket.dto.R;
import com.hziee.graduate.ticket.service.CouponOrderService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

@RestController
@RequestMapping("couponOrder")
public class CouponOrderController {

    @Resource
    CouponOrderService couponOrderService;

    @GetMapping("getACoupon/{couponId}/{userId}")
    public R<Object> getACoupon(@PathVariable("couponId") Long couponId, @PathVariable("userId") Long userId) {
        return couponOrderService.getACoupon(couponId, userId);
    }
}

